package character;

public enum ResistanceTypes {
	ARCANE,
	FIRE,
	FROST,
	HOLY,
	NATURE,
	SHADOW;
	
	public static boolean comareStringToResistanceType(String something) {
		boolean found = false;
		for(ResistanceTypes res : ResistanceTypes.values()) {
			if(res.toString().toLowerCase().equals(something.toLowerCase())){
				found = true;
			}
		}
		return found;
	}
	
	public static ResistanceTypes findCoherentResType(String validType) {
		ResistanceTypes currResType = null;
		currResType = ResistanceTypes.valueOf(validType.toUpperCase());
		return currResType;
	}
}
